# __author__ = "James Zhang"
# !/usr/bin/python
# -*- coding: utf-8 -*-
from base import BaseModel, Engine


def init_db():
    BaseModel.metadata.create_all(Engine().engine)


def drop_db():
    BaseModel.metadata.drop_all(Engine().engine)

if __name__ == "__main__":
    from core.conf import settings
    settings.configure()
    from core.sessions.models import BaseModel, Session
    from models.test import User, Address
    drop_db()
    init_db()
